package com.forum.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.*;
@Component
public class UserProfiles {
    @TableId(type = IdType.AUTO)
    private Integer id; // 记录ID
    private Integer userId; // 用户ID
    private String avatar; // 头像URL
    private String bio; // 个人简介
    private BigDecimal balance; // 账户余额（模拟支付）
    private LocalDateTime createdAt; // 创建时间

    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public Integer getUserId() { return userId; }
    public void setUserId(Integer userId) { this.userId = userId; }
    public String getAvatar() { return avatar; }
    public void setAvatar(String avatar) { this.avatar = avatar; }
    public String getBio() { return bio; }
    public void setBio(String bio) { this.bio = bio; }
    public BigDecimal getBalance() { return balance; }
    public void setBalance(BigDecimal balance) { this.balance = balance; }
    public LocalDateTime getCreatedAt() { return createdAt; }
    public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
}
